<template>
  <section>
    <div style="height: 100px">
      <s-button @click="handleClick">Default</s-button>
      <s-button type="primary">Primary</s-button>
    </div>
    <div class="mb-4">
      <s-button type="success">Success</s-button>
      <s-button type="info">Info</s-button>
      <s-button type="warning">Warning</s-button>
      <s-button type="danger">Danger</s-button>
    </div>

    <div class="mb-4">
      <s-button plain>Plain</s-button>
      <s-button type="primary" plain>Primary</s-button>
      <s-button type="success" plain>Success</s-button>
      <s-button type="info" plain>Info</s-button>
      <s-button type="warning" plain>Warning</s-button>
      <s-button type="danger" plain>Danger</s-button>
    </div>

    <div class="mb-4">
      <s-button round>Round</s-button>
      <s-button type="primary" round>Primary</s-button>
      <s-button type="success" round>Success</s-button>
      <s-button type="info" round>Info</s-button>
      <s-button type="warning" round>Warning</s-button>
      <s-button type="danger" round>Danger</s-button>
    </div>

    <div>
      <s-button icon="search" circle />
      <s-button type="primary" icon="edit" circle />
      <s-button type="success" icon="check" circle />
      <s-button type="info" icon="message" circle />
      <s-button type="warning" icon="star" circle />
      <s-button type="danger" icon="delete" circle />
    </div>

    <p>禁用状态</p>
    <div class="mb-4">
      <s-button disabled>Default</s-button>
      <s-button type="primary" disabled>Primary</s-button>
      <s-button type="success" disabled>Success</s-button>
      <s-button type="info" disabled>Info</s-button>
      <s-button type="warning" disabled>Warning</s-button>
      <s-button type="danger" disabled>Danger</s-button>
    </div>

    <div>
      <s-button plain disabled>Plain</s-button>
      <s-button type="primary" plain disabled>Primary</s-button>
      <s-button type="success" plain disabled>Success</s-button>
      <s-button type="info" plain disabled>Info</s-button>
      <s-button type="warning" plain disabled>Warning</s-button>
      <s-button type="danger" plain disabled>Danger</s-button>
    </div>

    图标
    <div>
      <s-button icon="alipay" circle></s-button>
      <s-button type="primary" icon="alipay">Primary</s-button>
      <s-button type="success" icon="alipay">Success</s-button>
      <s-button type="info" icon="alipay">Info</s-button>
      <s-button type="warning" icon="alipay">Warning</s-button>
      <s-button type="danger" icon="alipay">Danger</s-button>
    </div>

    大小
    <div class="flex flex-wrap items-center mb-4">
      <s-button size="large">Large</s-button>
      <s-button>Default</s-button>
      <s-button size="small">Small</s-button>
      <s-button size="large" icon="search">Search</s-button>
      <s-button icon="search">Search</s-button>
      <s-button size="small" icon="search">Search</s-button>
    </div>
  </section>
</template>

<script setup lang="ts">
const handleClick = (e: MouseEvent) => {
  console.log('Button clicked!', e)
}
</script>
